package com.wx.lock.zooKeeper;

/**
 * @author wx
 * @Description: 分布式锁接口
 * @date 2018/11/30 003010:00
 */
public interface DistributedLockInterface {
    /**
     * @param
     * @description: 获取锁
     * @author: wx
     * @date: 2018/11/30 0030
     * @return: boolean
     */
    boolean getLock();

    /**
     * @param
     * @description: 释放锁
     * @author: wx
     * @date: 2018/11/30 0030
     * @return: void
     */
    void unLock();
}
